package com.zhudoo.zhilian.util;

public class StringUtils {

    public static boolean isEmpty(String str) {
        return str == null || str.length() == 0 || str.trim().length() == 0;
    }

    public static boolean isPhone(String str) {
        return str != null && str.trim().length() == 11;
    }

    public static boolean isNotEmpty(String str) {
        return !isEmpty(str);
    }

    public static String trim(String str) {
        //调整格式
        return str.replaceAll("\\s+", " ");
    }
}
